package com.example.fresheveryday.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.math.BigInteger;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author ll
 * @since 2023-07-05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class Suborder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private BigInteger id;

    /**
     * 商品id
     */
    @TableField("productId")
    private Integer productid;

    /**
     * 订单商品数量
     */
    private Integer quantity;

    /**
     * 订单金额
     */
    private BigDecimal money;

    /**
     * 父订单号
     */
    @TableField("orderId")
    private String orderid;
    @TableField(exist = false)
    private Product product;

}
